package com.online_exam.service;

import com.online_exam.domain.Question;
import com.online_exam.viewmodel.admin.question.QuestionEditVM;
import com.online_exam.viewmodel.admin.question.QuestionPageRequestVM;

import java.util.List;

public interface QuestionService {
    //添加题目
    public int insertQuestion(Question question);

    public int insertQuestionByVM(QuestionEditVM questionEditVM, Integer userid);

    List<Question>select(QuestionPageRequestVM vm);

    QuestionEditVM getQuestionEditRequestVM(Integer id);
    QuestionEditVM questionToVM(Question question);
    List<Question> selectByIds(List<Integer> ids);

    public int deleteQuestionById(Integer id);

    public int updateQuestion(Question question);

    public int updateQuestionByEditVM(QuestionEditVM editVM);
}
